/**
 * This class is a copy-paste from the class file SearchFiles.java (from the example
 * of lucene). In that file is defined ad an inner-class.
 */
package Searcher;

import java.io.IOException;

import org.apache.lucene.index.FilterIndexReader;
import org.apache.lucene.index.IndexReader;

public class OneNormsReader extends FilterIndexReader {
	private String field;

	public OneNormsReader(IndexReader in, String field) {
		super(in);
		this.field = field;
	}

	@Override
	public byte[] norms(String field) throws IOException {
		return in.norms(this.field);
	}
}